package qiyu.live.bank.api.controller;

import jakarta.annotation.Resource;
import org.qiyu.live.common.interfaces.vo.WebResponseVO;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import qiyu.live.bank.api.service.IPayNotifyService;

/**
 * Created with IntelliJ IDEA.
 * Description: 专门用于接收第三方回调请求的
 * User: sfx
 * Date: 2023-11-07
 * Time: 15:49
 */
@RestController
@RequestMapping("/payNotify")
public class PayNotifyController {

    @Resource
    private IPayNotifyService payNotifyService;

    // 假设现在对接的是微信
    @PostMapping("/wxNotify")
    public String WXNotify(String param) {
        return payNotifyService.notifyHandler(param);
    }
}